projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9f269f
)
armv8: Make COUNTER_FREQUENCY optional
author
Thierry Reding
<
[email protected]
>
Thu, 20 Aug 2015 09:42:18 +0000
(11:42 +0200)
committer
Tom Warren
<
[email protected]
>
Wed, 16 Sep 2015 23:10:22 +0000
(16:10 -0700)
Some platforms have the means to determine the counter frequency at
runtime, so give them an opportunity to do so.
Signed-off-by: Thierry Reding <
[email protected]
>
Acked-by: Stephen Warren <
[email protected]
>
Tested-by: Stephen Warren <
[email protected]
>
Signed-off-by: Tom Warren <
[email protected]
>
arch/arm/cpu/armv8/start.S
patch
|
blob
|
history
diff --git
a/arch/arm/cpu/armv8/start.S
b/arch/arm/cpu/armv8/start.S
index e70bed462a59f9c4d4f1583242f88d99aadb76a9..da45d984d01aa8880e36f9e4f538c57298438441 100644
(file)
--- a/
arch/arm/cpu/armv8/start.S
+++ b/
arch/arm/cpu/armv8/start.S
@@
-54,8
+54,10
@@
reset:
orr x0, x0, #0xf /* SCR_EL3.NS|IRQ|FIQ|EA */
msr scr_el3, x0
msr cptr_el3, xzr /* Enable FP/SIMD */
+#ifdef COUNTER_FREQUENCY
ldr x0, =COUNTER_FREQUENCY
msr cntfrq_el0, x0 /* Initialize CNTFRQ */
+#endif
b 0f
2: msr vbar_el2, x0
mov x0, #0x33ff